<?php
$tdatabrcs_chart=array();
	$tdatabrcs_chart[".NumberOfChars"]=80; 
	$tdatabrcs_chart[".ShortName"]="brcs_chart";
	$tdatabrcs_chart[".OwnerID"]="";
	$tdatabrcs_chart[".OriginalTable"]="brcs";


	
//	field labels
$fieldLabelsbrcs_chart = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsbrcs_chart["English"]=array();
	$fieldToolTipsbrcs_chart["English"]=array();
	$fieldLabelsbrcs_chart["English"]["id"] = "Id";
	$fieldToolTipsbrcs_chart["English"]["id"] = "";
	$fieldLabelsbrcs_chart["English"]["bank_id"] = "Bank";
	$fieldToolTipsbrcs_chart["English"]["bank_id"] = "";
	$fieldLabelsbrcs_chart["English"]["account_id"] = "Account";
	$fieldToolTipsbrcs_chart["English"]["account_id"] = "";
	$fieldLabelsbrcs_chart["English"]["ra_id"] = "Regional Authority";
	$fieldToolTipsbrcs_chart["English"]["ra_id"] = "";
	$fieldLabelsbrcs_chart["English"]["signature"] = "Signature";
	$fieldToolTipsbrcs_chart["English"]["signature"] = "";
	$fieldLabelsbrcs_chart["English"]["designation"] = "Designation";
	$fieldToolTipsbrcs_chart["English"]["designation"] = "";
	$fieldLabelsbrcs_chart["English"]["office_address"] = "Office Address";
	$fieldToolTipsbrcs_chart["English"]["office_address"] = "";
	$fieldLabelsbrcs_chart["English"]["residential_address"] = "Residential Address";
	$fieldToolTipsbrcs_chart["English"]["residential_address"] = "";
	$fieldLabelsbrcs_chart["English"]["place"] = "Place";
	$fieldToolTipsbrcs_chart["English"]["place"] = "";
	$fieldLabelsbrcs_chart["English"]["brc_date"] = "Date";
	$fieldToolTipsbrcs_chart["English"]["brc_date"] = "";
	$fieldLabelsbrcs_chart["English"]["ref_id"] = "Ref Id";
	$fieldToolTipsbrcs_chart["English"]["ref_id"] = "";
	if (count($fieldToolTipsbrcs_chart["English"])){
		$tdatabrcs_chart[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelsbrcs_chart["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipsbrcs_chart["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["bank_id"] = "Bank Id";
	$fieldToolTipsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["bank_id"] = "";
	$fieldLabelsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["account_id"] = "Account Id";
	$fieldToolTipsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["account_id"] = "";
	$fieldLabelsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["ra_id"] = "Ra Id";
	$fieldToolTipsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["ra_id"] = "";
	$fieldLabelsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["signature"] = "Signature";
	$fieldToolTipsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["signature"] = "";
	$fieldLabelsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["designation"] = "Designation";
	$fieldToolTipsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["designation"] = "";
	$fieldLabelsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["office_address"] = "Office Address";
	$fieldToolTipsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["office_address"] = "";
	$fieldLabelsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["residential_address"] = "Residential Address";
	$fieldToolTipsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["residential_address"] = "";
	$fieldLabelsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["place"] = "Place";
	$fieldToolTipsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["place"] = "";
	$fieldLabelsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["brc_date"] = "Brc Date";
	$fieldToolTipsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["brc_date"] = "";
	$fieldLabelsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["ref_id"] = "Ref Id";
	$fieldToolTipsbrcs_chart["Chinese (Hong Kong S.A.R.)"]["ref_id"] = "";
	if (count($fieldToolTipsbrcs_chart["Chinese (Hong Kong S.A.R.)"])){
		$tdatabrcs_chart[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelsbrcs_chart["Chinese (Taiwan)"]=array();
	$fieldToolTipsbrcs_chart["Chinese (Taiwan)"]=array();
	$fieldLabelsbrcs_chart["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipsbrcs_chart["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelsbrcs_chart["Chinese (Taiwan)"]["bank_id"] = "Bank Id";
	$fieldToolTipsbrcs_chart["Chinese (Taiwan)"]["bank_id"] = "";
	$fieldLabelsbrcs_chart["Chinese (Taiwan)"]["account_id"] = "Account Id";
	$fieldToolTipsbrcs_chart["Chinese (Taiwan)"]["account_id"] = "";
	$fieldLabelsbrcs_chart["Chinese (Taiwan)"]["ra_id"] = "Ra Id";
	$fieldToolTipsbrcs_chart["Chinese (Taiwan)"]["ra_id"] = "";
	$fieldLabelsbrcs_chart["Chinese (Taiwan)"]["signature"] = "Signature";
	$fieldToolTipsbrcs_chart["Chinese (Taiwan)"]["signature"] = "";
	$fieldLabelsbrcs_chart["Chinese (Taiwan)"]["designation"] = "Designation";
	$fieldToolTipsbrcs_chart["Chinese (Taiwan)"]["designation"] = "";
	$fieldLabelsbrcs_chart["Chinese (Taiwan)"]["office_address"] = "Office Address";
	$fieldToolTipsbrcs_chart["Chinese (Taiwan)"]["office_address"] = "";
	$fieldLabelsbrcs_chart["Chinese (Taiwan)"]["residential_address"] = "Residential Address";
	$fieldToolTipsbrcs_chart["Chinese (Taiwan)"]["residential_address"] = "";
	$fieldLabelsbrcs_chart["Chinese (Taiwan)"]["place"] = "Place";
	$fieldToolTipsbrcs_chart["Chinese (Taiwan)"]["place"] = "";
	$fieldLabelsbrcs_chart["Chinese (Taiwan)"]["brc_date"] = "Brc Date";
	$fieldToolTipsbrcs_chart["Chinese (Taiwan)"]["brc_date"] = "";
	$fieldLabelsbrcs_chart["Chinese (Taiwan)"]["ref_id"] = "Ref Id";
	$fieldToolTipsbrcs_chart["Chinese (Taiwan)"]["ref_id"] = "";
	if (count($fieldToolTipsbrcs_chart["Chinese (Taiwan)"])){
		$tdatabrcs_chart[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelsbrcs_chart["French"]=array();
	$fieldToolTipsbrcs_chart["French"]=array();
	$fieldLabelsbrcs_chart["French"]["id"] = "Id";
	$fieldToolTipsbrcs_chart["French"]["id"] = "";
	$fieldLabelsbrcs_chart["French"]["bank_id"] = "Bank Id";
	$fieldToolTipsbrcs_chart["French"]["bank_id"] = "";
	$fieldLabelsbrcs_chart["French"]["account_id"] = "Account Id";
	$fieldToolTipsbrcs_chart["French"]["account_id"] = "";
	$fieldLabelsbrcs_chart["French"]["ra_id"] = "Ra Id";
	$fieldToolTipsbrcs_chart["French"]["ra_id"] = "";
	$fieldLabelsbrcs_chart["French"]["signature"] = "Signature";
	$fieldToolTipsbrcs_chart["French"]["signature"] = "";
	$fieldLabelsbrcs_chart["French"]["designation"] = "Designation";
	$fieldToolTipsbrcs_chart["French"]["designation"] = "";
	$fieldLabelsbrcs_chart["French"]["office_address"] = "Office Address";
	$fieldToolTipsbrcs_chart["French"]["office_address"] = "";
	$fieldLabelsbrcs_chart["French"]["residential_address"] = "Residential Address";
	$fieldToolTipsbrcs_chart["French"]["residential_address"] = "";
	$fieldLabelsbrcs_chart["French"]["place"] = "Place";
	$fieldToolTipsbrcs_chart["French"]["place"] = "";
	$fieldLabelsbrcs_chart["French"]["brc_date"] = "Brc Date";
	$fieldToolTipsbrcs_chart["French"]["brc_date"] = "";
	$fieldLabelsbrcs_chart["French"]["ref_id"] = "Ref Id";
	$fieldToolTipsbrcs_chart["French"]["ref_id"] = "";
	if (count($fieldToolTipsbrcs_chart["French"])){
		$tdatabrcs_chart[".isUseToolTips"]=true;
	}
}


	
	$tdatabrcs_chart[".NCSearch"]=true;

	
	$tdatabrcs_chart[".ChartRefreshTime"] = 0;

$tdatabrcs_chart[".shortTableName"] = "brcs_chart";
$tdatabrcs_chart[".nSecOptions"] = 0;
$tdatabrcs_chart[".recsPerRowList"] = 1;	
$tdatabrcs_chart[".tableGroupBy"] = "0";
$tdatabrcs_chart[".mainTableOwnerID"] = "";
$tdatabrcs_chart[".moveNext"] = 1;




$tdatabrcs_chart[".showAddInPopup"] = false;

$tdatabrcs_chart[".showEditInPopup"] = false;

$tdatabrcs_chart[".showViewInPopup"] = false;


$tdatabrcs_chart[".fieldsForRegister"] = array();

$tdatabrcs_chart[".listAjax"] = false;

	$tdatabrcs_chart[".audit"] = false;

	$tdatabrcs_chart[".locking"] = false;
	
$tdatabrcs_chart[".listIcons"] = true;
$tdatabrcs_chart[".edit"] = true;
$tdatabrcs_chart[".inlineEdit"] = true;
$tdatabrcs_chart[".view"] = true;



$tdatabrcs_chart[".delete"] = true;

$tdatabrcs_chart[".showSimpleSearchOptions"] = false;

$tdatabrcs_chart[".showSearchPanel"] = true;


$tdatabrcs_chart[".isUseAjaxSuggest"] = true;



// button handlers file names

$tdatabrcs_chart[".addPageEvents"] = false;

$tdatabrcs_chart[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatabrcs_chart[".isUseCalendarForSearch"] = true;

// use timepicker for search panel
$tdatabrcs_chart[".isUseTimeForSearch"] = false;

$tdatabrcs_chart[".isUseiBox"] = false;



$tdatabrcs_chart[".isUseInlineJs"] = $tdatabrcs_chart[".isUseInlineAdd"] || $tdatabrcs_chart[".isUseInlineEdit"];

$tdatabrcs_chart[".allSearchFields"] = array();

$tdatabrcs_chart[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatabrcs_chart[".allSearchFields"]))
{
	$tdatabrcs_chart[".allSearchFields"][] = "id";	
}
$tdatabrcs_chart[".globSearchFields"][] = "bank_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bank_id", $tdatabrcs_chart[".allSearchFields"]))
{
	$tdatabrcs_chart[".allSearchFields"][] = "bank_id";	
}
$tdatabrcs_chart[".globSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdatabrcs_chart[".allSearchFields"]))
{
	$tdatabrcs_chart[".allSearchFields"][] = "account_id";	
}
$tdatabrcs_chart[".globSearchFields"][] = "ra_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ra_id", $tdatabrcs_chart[".allSearchFields"]))
{
	$tdatabrcs_chart[".allSearchFields"][] = "ra_id";	
}
$tdatabrcs_chart[".globSearchFields"][] = "signature";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("signature", $tdatabrcs_chart[".allSearchFields"]))
{
	$tdatabrcs_chart[".allSearchFields"][] = "signature";	
}
$tdatabrcs_chart[".globSearchFields"][] = "designation";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("designation", $tdatabrcs_chart[".allSearchFields"]))
{
	$tdatabrcs_chart[".allSearchFields"][] = "designation";	
}
$tdatabrcs_chart[".globSearchFields"][] = "office_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("office_address", $tdatabrcs_chart[".allSearchFields"]))
{
	$tdatabrcs_chart[".allSearchFields"][] = "office_address";	
}
$tdatabrcs_chart[".globSearchFields"][] = "residential_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("residential_address", $tdatabrcs_chart[".allSearchFields"]))
{
	$tdatabrcs_chart[".allSearchFields"][] = "residential_address";	
}
$tdatabrcs_chart[".globSearchFields"][] = "place";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("place", $tdatabrcs_chart[".allSearchFields"]))
{
	$tdatabrcs_chart[".allSearchFields"][] = "place";	
}
$tdatabrcs_chart[".globSearchFields"][] = "brc_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("brc_date", $tdatabrcs_chart[".allSearchFields"]))
{
	$tdatabrcs_chart[".allSearchFields"][] = "brc_date";	
}
$tdatabrcs_chart[".globSearchFields"][] = "ref_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ref_id", $tdatabrcs_chart[".allSearchFields"]))
{
	$tdatabrcs_chart[".allSearchFields"][] = "ref_id";	
}


$tdatabrcs_chart[".googleLikeFields"][] = "id";
$tdatabrcs_chart[".googleLikeFields"][] = "bank_id";
$tdatabrcs_chart[".googleLikeFields"][] = "account_id";
$tdatabrcs_chart[".googleLikeFields"][] = "ra_id";
$tdatabrcs_chart[".googleLikeFields"][] = "signature";
$tdatabrcs_chart[".googleLikeFields"][] = "designation";
$tdatabrcs_chart[".googleLikeFields"][] = "office_address";
$tdatabrcs_chart[".googleLikeFields"][] = "residential_address";
$tdatabrcs_chart[".googleLikeFields"][] = "place";
$tdatabrcs_chart[".googleLikeFields"][] = "brc_date";
$tdatabrcs_chart[".googleLikeFields"][] = "ref_id";



$tdatabrcs_chart[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatabrcs_chart[".allSearchFields"])) 
{
	$tdatabrcs_chart[".allSearchFields"][] = "id";	
}
$tdatabrcs_chart[".advSearchFields"][] = "bank_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bank_id", $tdatabrcs_chart[".allSearchFields"])) 
{
	$tdatabrcs_chart[".allSearchFields"][] = "bank_id";	
}
$tdatabrcs_chart[".advSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdatabrcs_chart[".allSearchFields"])) 
{
	$tdatabrcs_chart[".allSearchFields"][] = "account_id";	
}
$tdatabrcs_chart[".advSearchFields"][] = "ra_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ra_id", $tdatabrcs_chart[".allSearchFields"])) 
{
	$tdatabrcs_chart[".allSearchFields"][] = "ra_id";	
}
$tdatabrcs_chart[".advSearchFields"][] = "signature";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("signature", $tdatabrcs_chart[".allSearchFields"])) 
{
	$tdatabrcs_chart[".allSearchFields"][] = "signature";	
}
$tdatabrcs_chart[".advSearchFields"][] = "designation";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("designation", $tdatabrcs_chart[".allSearchFields"])) 
{
	$tdatabrcs_chart[".allSearchFields"][] = "designation";	
}
$tdatabrcs_chart[".advSearchFields"][] = "office_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("office_address", $tdatabrcs_chart[".allSearchFields"])) 
{
	$tdatabrcs_chart[".allSearchFields"][] = "office_address";	
}
$tdatabrcs_chart[".advSearchFields"][] = "residential_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("residential_address", $tdatabrcs_chart[".allSearchFields"])) 
{
	$tdatabrcs_chart[".allSearchFields"][] = "residential_address";	
}
$tdatabrcs_chart[".advSearchFields"][] = "place";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("place", $tdatabrcs_chart[".allSearchFields"])) 
{
	$tdatabrcs_chart[".allSearchFields"][] = "place";	
}
$tdatabrcs_chart[".advSearchFields"][] = "brc_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("brc_date", $tdatabrcs_chart[".allSearchFields"])) 
{
	$tdatabrcs_chart[".allSearchFields"][] = "brc_date";	
}
$tdatabrcs_chart[".advSearchFields"][] = "ref_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ref_id", $tdatabrcs_chart[".allSearchFields"])) 
{
	$tdatabrcs_chart[".allSearchFields"][] = "ref_id";	
}

$tdatabrcs_chart[".isTableType"] = "chart";


	

$tdatabrcs_chart[".isDisplayLoading"] = true;

$tdatabrcs_chart[".isResizeColumns"] = false;




$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatabrcs_chart[".strOrderBy"] = $gstrOrderBy;
	
$tdatabrcs_chart[".orderindexes"] = array();

$tdatabrcs_chart[".sqlHead"] = "SELECT id,   bank_id,   account_id,   ra_id,   signature,   designation,   office_address,   residential_address,   place,   brc_date,   ref_id";
$tdatabrcs_chart[".sqlFrom"] = "FROM brcs";
$tdatabrcs_chart[".sqlWhereExpr"] = "";
$tdatabrcs_chart[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatabrcs_chart[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatabrcs_chart[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatabrcs_chart[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_chart["id"]=$fdata;
//	bank_id
	$fdata = array();
	$fdata["strName"] = "bank_id";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Bank"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "bank_id";
	
		$fdata["FullName"]= "bank_id";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_chart["bank_id"]=$fdata;
//	account_id
	$fdata = array();
	$fdata["strName"] = "account_id";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Account"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "account_id";
	
		$fdata["FullName"]= "account_id";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_chart["account_id"]=$fdata;
//	ra_id
	$fdata = array();
	$fdata["strName"] = "ra_id";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Regional Authority"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ra_id";
	
		$fdata["FullName"]= "ra_id";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_chart["ra_id"]=$fdata;
//	signature
	$fdata = array();
	$fdata["strName"] = "signature";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Signature"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "signature";
	
		$fdata["FullName"]= "signature";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_chart["signature"]=$fdata;
//	designation
	$fdata = array();
	$fdata["strName"] = "designation";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Designation"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "designation";
	
		$fdata["FullName"]= "designation";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_chart["designation"]=$fdata;
//	office_address
	$fdata = array();
	$fdata["strName"] = "office_address";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Office Address"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "office_address";
	
		$fdata["FullName"]= "office_address";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_chart["office_address"]=$fdata;
//	residential_address
	$fdata = array();
	$fdata["strName"] = "residential_address";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Residential Address"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "residential_address";
	
		$fdata["FullName"]= "residential_address";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_chart["residential_address"]=$fdata;
//	place
	$fdata = array();
	$fdata["strName"] = "place";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Place"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "place";
	
		$fdata["FullName"]= "place";
	
		
		
		
		
		
				$fdata["Index"]= 9;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_chart["place"]=$fdata;
//	brc_date
	$fdata = array();
	$fdata["strName"] = "brc_date";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "brc_date";
	
		$fdata["FullName"]= "brc_date";
	
		
		
		
		
		
				$fdata["Index"]= 10;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_chart["brc_date"]=$fdata;
//	ref_id
	$fdata = array();
	$fdata["strName"] = "ref_id";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Ref Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ref_id";
	
		$fdata["FullName"]= "ref_id";
	
		
		
		
		
		
				$fdata["Index"]= 11;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_chart["ref_id"]=$fdata;

$tdatabrcs_chart[".chartXml"] = '<chart>
<attr value="tables">
	<attr value="0">brcs_chart</attr>
</attr>
<attr value="chart_type">
	<attr value="type">2d_column</attr>
</attr>

<attr value="parameters">
<attr value="0">
<attr value="name">bank_id</attr>
<attr value="currencyFormat">0</attr>
<attr value="decimalFormat">2</attr>
<attr value="customFormat">0</attr>
<attr value="customFormatStr"></attr>
</attr>
<attr value="1">
<attr value="name">signature</attr>
</attr>
</attr>


<attr value="appearance">
	<attr value="scolor11">FF0000</attr>
	<attr value="scolor12">FF0000</attr>

<attr value="head">'.xmlencode("Chart Title").'</attr>
<attr value="foot">'.xmlencode("Legend Title").'</attr>

<attr value="color51">49563A</attr>
<attr value="color52">49563A</attr>
<attr value="color61">49563A</attr>
<attr value="color62">49563A</attr>
<attr value="color71">C7CDC1</attr>
<attr value="color72">C7CDC1</attr>
<attr value="color81">ECF0E8</attr>
<attr value="color82">ECF0E8</attr>
<attr value="color91">68838B</attr>
<attr value="color92">68838B</attr>
<attr value="color101">48505A</attr>
<attr value="color102">48505A</attr>
<attr value="color111">45595F</attr>
<attr value="color112">45595F</attr>
<attr value="color121"></attr>
<attr value="color122"></attr>
<attr value="color131"></attr>
<attr value="color132"></attr>
<attr value="color141"></attr>
<attr value="color142"></attr>

<attr value="slegend">true</attr>
<attr value="sgrid">false</attr>
<attr value="sname">true</attr>
<attr value="sval">true</attr>
<attr value="sanim">true</attr>
<attr value="sstacked">false</attr>
<attr value="saxes">false</attr>
<attr value="slog">false</attr>
<attr value="aqua">None</attr>
<attr value="cview">Column</attr>
<attr value="is3d">0</attr>
<attr value="isstacked">0</attr>
<attr value="linestyle">0</attr>
<attr value="autoupdate">0</attr>
<attr value="autoupmin">5</attr>
<attr value="cscroll">true</attr>
<attr value="maxbarscroll">10</attr>
</attr>

<attr value="fields">
	<attr value="0">
		<attr value="name">id</attr>
		<attr value="label">Id</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="1">
		<attr value="name">bank_id</attr>
		<attr value="label">Bank</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="2">
		<attr value="name">account_id</attr>
		<attr value="label">Account</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="3">
		<attr value="name">ra_id</attr>
		<attr value="label">Regional Authority</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="4">
		<attr value="name">signature</attr>
		<attr value="label">Signature</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="5">
		<attr value="name">designation</attr>
		<attr value="label">Designation</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="6">
		<attr value="name">office_address</attr>
		<attr value="label">Office Address</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="7">
		<attr value="name">residential_address</attr>
		<attr value="label">Residential Address</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="8">
		<attr value="name">place</attr>
		<attr value="label">Place</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="9">
		<attr value="name">brc_date</attr>
		<attr value="label">Date</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="10">
		<attr value="name">ref_id</attr>
		<attr value="label">Ref Id</attr>
		<attr value="search"></attr>
	</attr>
</attr>


<attr value="settings">
<attr value="name">id</attr>
<attr value="short_table_name">brcs_chart</attr>
</attr>

</chart>';
	
$tables_data["brcs_chart"]=&$tdatabrcs_chart;
$field_labels["brcs_chart"] = &$fieldLabelsbrcs_chart;
$fieldToolTips["brcs_chart"] = &$fieldToolTipsbrcs_chart;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["brcs_chart"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["brcs_chart"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto74=array();
$proto74["m_strHead"] = "SELECT";
$proto74["m_strFieldList"] = "id,   bank_id,   account_id,   ra_id,   signature,   designation,   office_address,   residential_address,   place,   brc_date,   ref_id";
$proto74["m_strFrom"] = "FROM brcs";
$proto74["m_strWhere"] = "";
$proto74["m_strOrderBy"] = "";
$proto74["m_strTail"] = "";
$proto75=array();
$proto75["m_sql"] = "";
$proto75["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto75["m_column"]=$obj;
$proto75["m_contained"] = array();
$proto75["m_strCase"] = "";
$proto75["m_havingmode"] = "0";
$proto75["m_inBrackets"] = "0";
$proto75["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto75);

$proto74["m_where"] = $obj;
$proto77=array();
$proto77["m_sql"] = "";
$proto77["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto77["m_column"]=$obj;
$proto77["m_contained"] = array();
$proto77["m_strCase"] = "";
$proto77["m_havingmode"] = "0";
$proto77["m_inBrackets"] = "0";
$proto77["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto77);

$proto74["m_having"] = $obj;
$proto74["m_fieldlist"] = array();
						$proto79=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "brcs"
));

$proto79["m_expr"]=$obj;
$proto79["m_alias"] = "";
$obj = new SQLFieldListItem($proto79);

$proto74["m_fieldlist"][]=$obj;
						$proto81=array();
			$obj = new SQLField(array(
	"m_strName" => "bank_id",
	"m_strTable" => "brcs"
));

$proto81["m_expr"]=$obj;
$proto81["m_alias"] = "";
$obj = new SQLFieldListItem($proto81);

$proto74["m_fieldlist"][]=$obj;
						$proto83=array();
			$obj = new SQLField(array(
	"m_strName" => "account_id",
	"m_strTable" => "brcs"
));

$proto83["m_expr"]=$obj;
$proto83["m_alias"] = "";
$obj = new SQLFieldListItem($proto83);

$proto74["m_fieldlist"][]=$obj;
						$proto85=array();
			$obj = new SQLField(array(
	"m_strName" => "ra_id",
	"m_strTable" => "brcs"
));

$proto85["m_expr"]=$obj;
$proto85["m_alias"] = "";
$obj = new SQLFieldListItem($proto85);

$proto74["m_fieldlist"][]=$obj;
						$proto87=array();
			$obj = new SQLField(array(
	"m_strName" => "signature",
	"m_strTable" => "brcs"
));

$proto87["m_expr"]=$obj;
$proto87["m_alias"] = "";
$obj = new SQLFieldListItem($proto87);

$proto74["m_fieldlist"][]=$obj;
						$proto89=array();
			$obj = new SQLField(array(
	"m_strName" => "designation",
	"m_strTable" => "brcs"
));

$proto89["m_expr"]=$obj;
$proto89["m_alias"] = "";
$obj = new SQLFieldListItem($proto89);

$proto74["m_fieldlist"][]=$obj;
						$proto91=array();
			$obj = new SQLField(array(
	"m_strName" => "office_address",
	"m_strTable" => "brcs"
));

$proto91["m_expr"]=$obj;
$proto91["m_alias"] = "";
$obj = new SQLFieldListItem($proto91);

$proto74["m_fieldlist"][]=$obj;
						$proto93=array();
			$obj = new SQLField(array(
	"m_strName" => "residential_address",
	"m_strTable" => "brcs"
));

$proto93["m_expr"]=$obj;
$proto93["m_alias"] = "";
$obj = new SQLFieldListItem($proto93);

$proto74["m_fieldlist"][]=$obj;
						$proto95=array();
			$obj = new SQLField(array(
	"m_strName" => "place",
	"m_strTable" => "brcs"
));

$proto95["m_expr"]=$obj;
$proto95["m_alias"] = "";
$obj = new SQLFieldListItem($proto95);

$proto74["m_fieldlist"][]=$obj;
						$proto97=array();
			$obj = new SQLField(array(
	"m_strName" => "brc_date",
	"m_strTable" => "brcs"
));

$proto97["m_expr"]=$obj;
$proto97["m_alias"] = "";
$obj = new SQLFieldListItem($proto97);

$proto74["m_fieldlist"][]=$obj;
						$proto99=array();
			$obj = new SQLField(array(
	"m_strName" => "ref_id",
	"m_strTable" => "brcs"
));

$proto99["m_expr"]=$obj;
$proto99["m_alias"] = "";
$obj = new SQLFieldListItem($proto99);

$proto74["m_fieldlist"][]=$obj;
$proto74["m_fromlist"] = array();
												$proto101=array();
$proto101["m_link"] = "SQLL_MAIN";
			$proto102=array();
$proto102["m_strName"] = "brcs";
$proto102["m_columns"] = array();
$proto102["m_columns"][] = "id";
$proto102["m_columns"][] = "bank_id";
$proto102["m_columns"][] = "account_id";
$proto102["m_columns"][] = "ra_id";
$proto102["m_columns"][] = "signature";
$proto102["m_columns"][] = "designation";
$proto102["m_columns"][] = "office_address";
$proto102["m_columns"][] = "residential_address";
$proto102["m_columns"][] = "place";
$proto102["m_columns"][] = "brc_date";
$proto102["m_columns"][] = "ref_id";
$obj = new SQLTable($proto102);

$proto101["m_table"] = $obj;
$proto101["m_alias"] = "";
$proto103=array();
$proto103["m_sql"] = "";
$proto103["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto103["m_column"]=$obj;
$proto103["m_contained"] = array();
$proto103["m_strCase"] = "";
$proto103["m_havingmode"] = "0";
$proto103["m_inBrackets"] = "0";
$proto103["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto103);

$proto101["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto101);

$proto74["m_fromlist"][]=$obj;
$proto74["m_groupby"] = array();
$proto74["m_orderby"] = array();
$obj = new SQLQuery($proto74);

$queryData_brcs_chart = $obj;
$tdatabrcs_chart[".sqlquery"] = $queryData_brcs_chart;

$tableEvents["brcs_chart"] = new eventsBase;

?>
